package com.purchase.ml.service.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.purchase.ml.bean.req.sys.SysRoleEditDto;
import com.purchase.ml.bean.req.sys.SysRoleNewDto;
import com.purchase.ml.bean.req.sys.SysRoleQueryDto;
import com.purchase.ml.entity.sys.SysRole;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author kyyang
 * Created 2021-01-01
 */
public interface ISysRoleService extends IService<SysRole> {

    /**
     * @description: 角色分页查询
     * @author kyyang
     * @date 2021/1/20 21:43
     * @version 1.0
     */
    IPage<SysRole> sysRoleByPage(SysRoleQueryDto sysRoleQueryDto);

    /**
     * @description: 角色新建
     * @author kyyang
     * @date 2021/1/20 21:44
     * @version 1.0
     */
    int sysRoleNew(SysRoleNewDto sysRoleNewDto);

    /**
     * @description: 角色编辑
     * @author kyyang
     * @date 2021/1/20 21:44
     * @version 1.0
     */
    int sysRoleEdit(SysRoleEditDto sysRoleEditDto);

    /**
     * @description: 角色删除
     * @author kyyang
     * @date 2021/1/20 21:44
     * @version 1.0
     */
    int sysRoleDel(List<Long> ids);
}
